pub struct Dog{
    pub name:String,
    pub age:i8
}

impl Pet for Dog{
    fn talk(&self) -> String {
       return  String::from(&self.name);
    }
}

pub  trait  Pet{
    fn talk(&self)-> String;

     fn greet(&self){
        println!("Hello ,Good morning. Do you eaten?")
    }
}